package connection.authorization;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;

/** @author Mihail A. Muhin */
public class AuthorizationData implements Serializable {
  private String username = null;
  private String password = null;

  public AuthorizationData() {

  }

  public AuthorizationData(String username, String password) {
    this.username = username;
    this.password = password;
  }

  public String getUsername() {
    return username;
  }

  public String getPassword() {
    return password;
  }

  public void write(ObjectOutputStream oos) {
    try {
      oos.writeObject(username);
      oos.writeObject(password);
    } catch (IOException e) {
    }
  }
}
